package com.suke.czx.modules.wxadmin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.wxadmin.dao.DkUserPhoneDao;
import com.suke.czx.modules.wxadmin.entity.DkUserPhoneEntity;
import com.suke.czx.modules.wxadmin.service.DkUserPhoneService;



@Service("dkUserPhoneService")
public class DkUserPhoneServiceImpl implements DkUserPhoneService {
	@Autowired
	private DkUserPhoneDao dkUserPhoneDao;
	
	@Override
	public DkUserPhoneEntity queryObject(String userId){
		return dkUserPhoneDao.queryObject(userId);
	}
	
	@Override
	public List<DkUserPhoneEntity> queryList(Map<String, Object> map){
		return dkUserPhoneDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dkUserPhoneDao.queryTotal(map);
	}
	
	@Override
	public void save(DkUserPhoneEntity dkUserPhone){
		dkUserPhoneDao.save(dkUserPhone);
	}
	
	@Override
	public void update(DkUserPhoneEntity dkUserPhone){
		dkUserPhoneDao.update(dkUserPhone);
	}
	
	@Override
	public void delete(String userId){
		dkUserPhoneDao.delete(userId);
	}
	
	@Override
	public void deleteBatch(String[] userIds){
		dkUserPhoneDao.deleteBatch(userIds);
	}

	@Override
	public DkUserPhoneEntity queryObjectByPhone(String phone) {
		return dkUserPhoneDao.queryObjectByPhone(phone);
	}
	
}
